import unittest
import random
import preceda_login

class NullWriter(object):
    def write(*_, **__):
        pass

    def flush(*_, **__):
        pass

PRECEDA_COUNTER = 0

class Preceda(unittest.TestCase):

    def setUp(self):
        global PRECEDA_COUNTER
        PRECEDA_COUNTER += 1

    def preceda_login(self):
        unittest.main(module=preceda_login)

def suite():
    tests = []
    for _ in range(2):
        tests.append('preceda_login')

    return unittest.TestSuite(map(Preceda, tests))

results = unittest.TextTestRunner(stream=NullWriter()).run(suite())
print 'Test was run', (PRECEDA_COUNTER), 'times'
#print 'Test was run', (PRECEDA_COUNTER/2), 'times'
